package cate.common.table.activity.throne;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cate.common.util.TimeTool;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("时间表")
public class TBTimeRow extends ERow {

    @NoteField("阶段")
    public int period;

    @NoteField("持续天数")
    public int lastDay;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("阶段", 0);
        this.period = xrw.getInteger("阶段", 0);
        this.lastDay = xrw.getInteger("持续天数", 0);
    }


    @NoteField("持续时间")
    public long lastTime;

    @Override
    public void decode() {
        super.decode();
        lastTime = lastDay * TimeTool.TimeCons.DAY;
    }
}
